﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EzCommand : MonoBehaviour
{
    private string userName;//用户名
    private string userPassword;//密码
    private string info;//信息
    float x;
    float y;
    float w;
    float h;
    void Start()
    {
        //初始化
        userName = "";
        userPassword = "";
        info = "";
    }
    
    void OnGUI()
    {
        w = Screen.width- Screen.width/10;
		h = Screen.height/20;
		x =(Screen.width-w)/2;
		y = Screen.height-Screen.height / 10-20;
        GUIStyle bb = new GUIStyle();
        bb.normal.textColor = new Color(1, 1, 1);   //设置字体颜色的
        bb.fontSize = 30;
        userName = GUI.TextField(new Rect(x, y, w, h), userName,bb);//15为最大字符串长度
    }
} 
